<div class="page-content" >
            
    <div class="panel panel-default">
        <div class="panel-heading">
            <strong>热门动态</strong>
        </div>
        <div class="panel-body">
            <div id="toolbar" style="width: 100%;">
                <form id="filter" method="get"  class="form-horizontal">
                    <div class="form-group">
                        <div class="col-sm-10">
                           <input type="text" name="kw" style="margin-left:5px;" value="<{$_REQUEST['kw']}>" placeholder="标题" />
						&nbsp;&nbsp;类型：<select name="pid">
						<option value="0">全部</option>
                             <volist name="type_array" id="vo">
							<option <if condition="$key eq $pid">selected="selected"</if> value="<{$key}>"><{$vo}></option>
							</volist>
                            </select>
						&nbsp;&nbsp;	所属班级：<select name="pid2">
							<option value="0">请选择班级</option>
                             <volist name="classrooms_list" id="vo">
							<option <if condition="$vo['subjectid'] eq $pid">selected="selected"</if> value="<{$vo['subjectid']}>"><{$vo.subject}></option>
							</volist>
                            </select>
                        </div>
					 
						 <div class="col-sm-2" style="float:right; width:auto">
                            <input type="submit" class="btn btn-primary pull-right" value="筛选">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8">
                            <a href="<{:U('Subject/subject_new_add')}>" class="btn btn-default">
                                <i class="fa fa-plus"></i>
                                添加
                            </a>
                        </div>
                         
                    </div>
                </form>
            </div>
       <div class="bootstrap-table">
		<div class="fixed-table-container" style="padding-bottom: 0px;"> 
			<div class="fixed-table-body"> 
				<table id="data-table" class="table"><thead>
			<tr>
			 
			<th style="" data-field="id"><div class="th-inner sortable both desc">ID</div><div class="fht-cell"></div></th>
			<th style="" data-field="name"><div class="th-inner ">标题</div><div class="fht-cell"></div></th>
					<th style="" ><div class="th-inner ">类型</div><div class="fht-cell"></div></th> 
					<th style="" data-field="created_at"><div class="th-inner ">添加时间</div><div class="fht-cell"></div></th> 
					
			<th style="" data-field="id"><div class="th-inner ">操作</div><div class="fht-cell"></div></th>
			</tr></thead>
			<tbody>
			<volist name="data" id="vo">
			<tr data-index="0">
			<td style=""><{$vo.id}></td>
			<td style=""><{$vo.title}></td>
			 <td height="36"  valign="middle"><if condition="$vo['pid'] eq 1"><{$vo.pidData.subject}><else/>校园动态</if></td>
			<td style=""><{:date("Y-m-d H:i",$vo['dateline'])}></td>
 	 
			<td style="">
			 <a  href="<{:U('Subject/subject_new_add',array('id'=> $vo['id']))}>" class="btn"><i class="v_mall_tubg v_mall_tj2"></i>&nbsp;编辑</a>
						 
                            <a onclick=" return confirm('确认要删除吗？')" href="<{:U('Subject/subject_new_del',array('ids'=> $vo['id']))}>" class="btn"><i class="v_mall_tubg v_mall_tj2"></i>&nbsp;删除</a>   
			
			 
			</td>
			</tr>
			</volist>
			</tbody></table>
			 </div> 
			  <include file="./Apps/BoxAdmin/View/Ace/Public/pager.html" />
		</div>
	    </div>
			<div class="clearfix"></div>
        </div>
    </div>
     

        </div>

 